package custom_types;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Date {
	@Column
	private int day;
	@Column
	private int month;
	@Column
	private int year;
	
	public Date(){}
	public Date(int day,int month,int year){
		this.day = day;
		this.month = month;
		this.year = year;
	}
	//Getters
	public int getDay() { return day; }
	public int getMonth() { return month; }
	public int getYear() { return year; }

	//Setters
	public void setDay(int day) { this.day = day; }
	public void setMonth(int month) { this.month = month; }
	public void setYear(int year) { this.year = year; }
}
